<!-- src/App.vue -->
<template>
    <div class="container">
      <router-view></router-view>
      <footer class="footer">
        <Footer />
      </footer>
      <div class="landscape-tip">
        请将屏幕竖向浏览
      </div>
    </div>
  </template>
  <script lang="ts">
  import { defineComponent } from 'vue';
  import FooterComponent from '../components/FooterComponent.vue';
  
  export default defineComponent({
    components: {Footer: FooterComponent }
  })
  </script>
  
  <style lang="scss">
  .container {
    height: 100%;
    display: flex;
    flex-direction: column;
  
    .header {
      height: 0.44rem;
      background-color: #f66;
    }
  
    .content {
      flex: 1;
      overflow: auto;
    }
  
  }
  
  .landscape-tip {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
  }
  
  @media only screen and (orientation: landscape) {
  
    // 横屏
    .landscape-tip {
      display: flex;
    }
  }
  </style>